<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=basePath%>css/weui.css">
<link rel="stylesheet" href="<%=basePath%>css/example.css">
<title>Insert title here</title>
</head>
<body style="background-color: #179B16;">
	<div class="weui-toptips weui-toptips_warn js_tooltips" style="display: none;" id="errorTips">未知错误</div>

	<br>
	<h2 style="text-align: center; color: #FFFFFF">出题记录</h2>
	
	<c:if test="${fn:length(questionList) gt 0}">
	<c:forEach items="${questionList }" var="question" varStatus="varStatus">
		<div class="weui-cells__title"
			style="background-color: #9ED99D; color: #FFFFFF;">
			<select class="weui-select" id="typeCode" id="typeCode" name="typeCode" disabled="disabled" style="color: #FFFFFF;"> <option value="">请选择题目类型</option>
				<c:forEach items="${typeList }" var="type" varStatus="varStatus">
					<option value="${type.typeCode }" <c:if test="${question.typeCode eq type.typeCode}">selected="selected"</c:if> style="color: #FFFFFF;">${type.typeName }</option>
				</c:forEach>
			</select>
		</div>
		<div class="weui-cells" style="background-color: #9ED99D;">
			<a class="weui-cell weui-cell_access" href="<%=basePath%>question/preview.do?token=${token }&questionNo=${question.questionNo }">
				<div class="weui-cell__bd">
					<p>${question.questionContent }</p>
				</div>
				<div class="weui-cell__ft">${question.questionDesc }</div>
			</a>
		</div>
	</c:forEach>
	</c:if>
	
	<c:if test="${fn:length(questionList) eq 0}">
		<div class="weui-loadmore weui-loadmore_line">
            <span class="weui-loadmore__tips">暂无数据</span>
        </div>
    </c:if>
	
	<div class="weui-footer">
		<p class="weui-footer__links">
			<a href="<%=basePath%>index.do" class="weui-footer__link">realQuestion</a>
		</p>
		<p class="weui-footer__text">Copyright © 2018 question.realjinge.com</p>
	</div>
</body>
</html>